package com.googlecode.bip.entity;

import java.io.Serializable;

/**
 * Interface for all users roles
 *
 * @author Claude CHOISNET
 */
public interface IGenericUser extends Serializable
{
    /**
     * Returns the iduser for this user (ReadOnly)
     * @return the iduser
     */
    public int getIdUser();

    /**
     * Returns the username for this user (login user name)
     * @return the username
     */
    public String getUserName();

    /**
     * Returns the isactive value
     * @return the isactive value
     */
    public int getIsActive();

    /**
     * Returns true if IGenericUser match with role
     * @param role {@link Role} to check
     * @return true if IGenericUser match with role, false otherwise
     */
    public boolean isInRole( Role role );

}
